﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace lumo.display.object2D
{
    /// <summary> Base class for all 2D game objects </summary>
    public interface IObject2D
    {
        /// <summary> 
        /// Draws the object over a surface 
        /// </summary>
        /// <param name="spriteBatch"> SpriteBatch object </param>
        void Draw(SpriteBatch spriteBatch);

        /// <summary> 
        /// Accessor for the order to draw the object
        /// </summary>
        float DrawOrder { get; set; }

        /// <summary> 
        /// Visibility accessor.
        /// </summary>
        bool Visible { get; set; }
    }

} 